	$.user={};

	$.user.template=function(content){
		if($(".tips")!=null){
			$(".tips").remove();
		}
			$("h3").after("<p class='tips' style='color:#F35A5A;font-size:13px;'>"+content+"</p>");
	}

/*实时监控文本框输入的内容*/
	 $(function(){
		$("#textarea-msg").bind('input porpertychange',function(){
		  var count = $(this).val().length;
			$("#word-count").text(count);
		});
	});
			
/*动画animate.animateStyle[Math.floor(Math.random()*28)*/
	var animate = {
			/*入场动画*/
			animateStyle : [
				'animated pulse','animated bounce','animated tada','animated swing','animated wobble','animated flip','animated flipInX',
				'animated flipInY','animated fadeIn','animated fadeInUp','animated fadeInDown','animated fadeInLeft','animated fadeInRight',
				'animated fadeInUpBig','animated fadeInDownBig','animated fadeInLeftBig','animated fadeInRightBig','animated bounceIn',
				'animated bounceInUp','animated bounceInDown','animated bounceInLeft','animated bounceInRight','animated rotateIn',
				'animated rotateInUpLeft','animated rotateInDownLeft','animated rotateInUpRight','animated rotateInDownRight','animated rollIn'
			],
			/*出场动画*/
			animateOutStyle:[
				'animated flipOutX','animated flipOutY','animated fadeOut','animated fadeOutUp','animated fadeOutDown','animated fadeOutLeft',
				'animated fadeOutRight','animated fadeOutUpBig','animated fadeOutDownBig','animated fadeOutLeftBig','animated fadeOutRightBig','animated bounceOut',
				'animated bounceOutUp','animated bounceOutDown','animated bounceOutLeft','animated bounceOutRight','animated rotateOut','animated rotateOutUpLeft',
				'animated rotateOutDownLeft','animated rotateOutDownRight','animated rollOut','animated hinge'
			]
		}

	

		
	